package com.itheima12;

import java.time.LocalDateTime;

/**
 * @author Xiao
 * @date 2021/7/21
 */
public class LocalDateTimeDemo {
    /**
     * LocalDateTime
     */
    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        //DateTimeException：13月不存在
//        LocalDateTime time = LocalDateTime.of(2021, 13, 21, 12, 12, 12);
        LocalDateTime time = LocalDateTime.of(2021, 07, 21, 12, 12, 12);
        System.out.println(now);
        System.out.println(time);

    }
}
